home *** CD-ROM | disk | FTP | other *** search
- Path: gambier.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: What is libc.sa? How to reinstall it?
- Date: 15 Mar 1996 10:50:21 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4ice5dINNeti@gambier.ugrad.cs.ubc.ca>
- References: <96074.203845U61441@uicvm.uic.edu>
- NNTP-Posting-Host: gambier.ugrad.cs.ubc.ca
-
- In article <96074.203845U61441@uicvm.uic.edu>,
- Sikander Waheed <U61441@uicvm.uic.edu> wrote:
- >I am getting a link time error from the ld. The message is as follows:
- > ld: malformed input file (not rel or archived) /usr/lib/libc.sa
- > (_U10000.o)
- >
- >What is libc.sa?
-
- It contains static _initialized_ variables needed by the shared library
- libc.so.<x>.<y>, and any static variables that don't have a zero bit pattern
- for a zero value (none in your environment).
-
- See, whereas the library code image can easily be aliased in the virtual
- address spaces of many processes (hence the term ``shared library''), the
- static initialized variables must be separately instantiated in each process.
- For example, if a the code of the library has a declaration such as:
-
- static x = 3;
-
- It will have to go into the .sa file, since every instance of the library needs
- its own copy of this variable. Else one process, in modifying x, would modify
- it in every other process.
-
- >How to I reinstall this file? Do I need to reinstall
-
- copy it.
-
- Please don't ask system-specific questions in a C language newsgroup. There are
- Linux and UNIX developer newsgroups for this sort of question.
- --
-
-